#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<assert.h>

char* mystrcpy(char* dest,const char* source)
{
	char* ret = dest;
	assert(source != NULL);
	while (*dest++ = *source++)
	{

	}
	return ret;
}

int main()
{
	char arr1[100] = "";
	char arr2[] = "hello word";
	mystrcpy(arr1, arr2);
	printf("%s", arr1);

	return 0;
}